import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios' //引入axios
import global from "./global/api";
import VueLazyload from 'vue-lazyload'
import "./axios"
import "./permission"
import api from './api'
import * as echarts from "echarts"
Vue.prototype.$echarts = echarts
Vue.prototype.global = global;
Vue.prototype.myFunc = api;
axios.defaults.baseURL = global.baseURL;
Vue.prototype.$axios = axios; //把axios挂载到vue上
Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(VueLazyload)
new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')